package com.couduidui.my.app.datasource;

import java.util.ArrayList;
import java.util.List;

import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.boot.env.YamlPropertySourceLoader;
import org.springframework.context.ApplicationListener;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.ResourceLoader;

/**
 * 本类的功能简述.本类的功能详细说明。补充修订记录
 * 
 * @author 错对对
 * @date 2017年7月6日 下午3:46:49
 */
public class LoaderDataSouce implements ApplicationListener<ApplicationEnvironmentPreparedEvent> {

	@Override
	public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
		ResourceLoader loader = new DefaultResourceLoader();
		YamlPropertySourceLoader yamlLoader = new YamlPropertySourceLoader();
		List<String> yamlFilePaths = new ArrayList<>();
//		PropertySources
//		environment.getPropertySources().addLast(yamlLoader.load("", loader.getResource(""), null));

	}

}
